/*
 * Josh Lindoo
 * Login ID : lind6441
 * CS-102, Winter 2013
 * Programming Assignment 5
 * Node class: Basic node with one link
 */

public class Node<T> {
	
	private T datum;
	private Node<T> next;
	
	//Default constructor
	public Node() {
		datum = null;
		next = null;
	}
	
	//Constructor with item param
	public Node(T item) {
		setDatum(item);
		next = null;
	}
	
	//Accessor Methods
	public T getDatum() {
		return datum;
	}
	
	public Node<T> getNext() {
		return next;
	}
	
	//Mutator methods
	public void setDatum(T item) {
		datum = item;
	}
	
	public void setNext(Node<T> node) {
		next = node;
	}
	
}
